package com.itc.bi.controller;

import com.itc.bi.service.FunctionConfigService;
import com.itc.common.core.domain.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: xuzy
 * @Version: 1.0
 */
@RestController
@Api(value = "函数",tags = "函数")
@RequestMapping("/functionConfig")
public class FunctionConfigController {
    @Autowired
    private FunctionConfigService service;

    @PostMapping("/list")
    @ApiOperation(value = "列表",notes = "列表")
    public R list(){
        return R.ok(service.tree());
    }
}
